cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 09:13:21 +0000 (09:13 +0000)]
Better build fix.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 08:59:35 +0000 (08:59 +0000)]
Cleanup timeout code for when socket is already in use.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 08:56:13 +0000 (08:56 +0000)]
Fix build!
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 07:45:06 +0000 (07:45 +0000)]
Remove bad lines from start od script.
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 07:38:53 +0000 (07:38 +0000)]
merge?
kaf24@firebug.cl.cam.ac.uk [Thu, 15 Sep 2005 07:21:31 +0000 (07:21 +0000)]
More build fixes for latest binutils. No 'movl' between
a segment register and memory location.
Signed-off-by: Keir Fraser <keir@xensource.com>
shand@ubuntu.eng.hq.xensource.com [Thu, 15 Sep 2005 04:12:54 +0000 (20:12 -0800)]
Deal with domain info going away (handle new error path introduced by
cset 6828). Believe Dan Smith is working up a more comprehensive patch.
Signed-off-by: Steven Hand <steven@xensource.com>
shand@ubuntu.eng.hq.xensource.com [Thu, 15 Sep 2005 01:46:40 +0000 (17:46 -0800)]
O_REUSEADDR is not enough to ensure we don't get address in use errors when
xend dies from a signal.
We implement a 30 second time to ensure we don't fail if we don't have to.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
shand@ubuntu.eng.hq.xensource.com [Thu, 15 Sep 2005 01:45:51 +0000 (17:45 -0800)]
Make sure xend start doesn't return until xend is ready to accept connections.
This means xend start && xm list actually works now (instead of throwing an
exception).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
shand@ubuntu.eng.hq.xensource.com [Thu, 15 Sep 2005 01:07:33 +0000 (17:07 -0800)]
Disable CONFIG_PNPACPI temporarily in the -xen defconfig (it's known not to
work, causing dom0 to fail to boot - see bugzilla for more details).
Signed-off-by: Robert Read <robert@xensource.com>
Signed-off-by: Steven Hand <steven@xensource.com>
djm@kirby.fc.hp.com [Thu, 15 Sep 2005 00:00:23 +0000 (18:00 -0600)]
Oops, one hypervisor.h change seems to have unfixed in the merge
djm@kirby.fc.hp.com [Wed, 14 Sep 2005 23:01:42 +0000 (17:01 -0600)]
Add missing include/decl to ia64-specific hypervisor.h
shand@ubuntu.eng.hq.xensource.com [Wed, 14 Sep 2005 22:36:29 +0000 (14:36 -0800)]
The dom destroy path is doing a dom_get on a non-existent domain to
ensure it is non-existent. This changes throws an explicit exception
when xc_domain_getinfo returns an error, instead of triggering an
internal python error. It then handles the exception in dom_get by
returning None, which callers already expect to mean failure.
Signed-off-by: Robert Read <robert@xensource.com>
djm@kirby.fc.hp.com [Wed, 14 Sep 2005 21:45:30 +0000 (15:45 -0600)]
Add ia64-specific hypervisor.h
djm@kirby.fc.hp.com [Wed, 14 Sep 2005 21:36:10 +0000 (15:36 -0600)]
Merge latest xen-unstable into xen-ia64-unstable to prep
for push back to xen-unstable
djm@kirby.fc.hp.com [Wed, 14 Sep 2005 21:33:52 +0000 (15:33 -0600)]
Add needed header files that are buried/nested in x86
djm@kirby.fc.hp.com [Wed, 14 Sep 2005 21:26:35 +0000 (15:26 -0600)]
Merge latest xen-unstable into xen-ia64-unstable
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 20:45:40 +0000 (20:45 +0000)]
Remove redundant semi-colon from end of DEFINE_RING_TYPES
macro.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:59:15 +0000 (19:59 +0000)]
merge?
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:53:29 +0000 (19:53 +0000)]
Switch most uses of write over to store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:52:04 +0000 (19:52 +0000)]
Explicit test for None.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:34:13 +0000 (19:34 +0000)]
More syntactic sugar.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:30:08 +0000 (19:30 +0000)]
Move start_time out of xend dir and use gather/store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:29:25 +0000 (19:29 +0000)]
Support removing nodes from store if value to store is None.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:22:31 +0000 (19:22 +0000)]
Add store function.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:17:22 +0000 (19:17 +0000)]
Always allow transaction abort.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 18:24:25 +0000 (18:24 +0000)]
Add gather function and robustify class methods' failure handling.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 17:54:43 +0000 (17:54 +0000)]
Fix mmapping of PCI resources from userspace.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 17:06:37 +0000 (17:06 +0000)]
merge?
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 17:06:25 +0000 (17:06 +0000)]
Rename xm commands and cleanup of the "bogus" argument code.
For the "bogus" argument code, avoid changing the argument list so
that errors can be reported consistently.
Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 16:56:05 +0000 (16:56 +0000)]
Fix xc_make_page_below_4G(). Should fix PAE domain
building on >= 4GB systems.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 16:49:23 +0000 (16:49 +0000)]
During my attempts to get the latest bridge networking model working on my
system, I often invoked 'network-bridge stop' with total failure. Attached
is an updated version that works.
Signed-off-by: Andrew Theurer <habanero@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:56:06 +0000 (15:56 +0000)]
Fix xc_domain_memory_decrease_reservation().
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:47:48 +0000 (15:47 +0000)]
Add methods to read/write Vm/Domain store entries.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:25:28 +0000 (15:25 +0000)]
Move name back into main domain dir.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:10:22 +0000 (15:10 +0000)]
Move id back into main domain dir and rename to domid.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 14:43:34 +0000 (14:43 +0000)]
merge?
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:37:50 +0000 (13:37 +0000)]
Set NE bit for VMX guest CR0. VMCS guest CR0.NE bit must
be set, else it will cause "vm-entry failed".
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:37:03 +0000 (13:37 +0000)]
Move uuid back into main domain dir.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:34:14 +0000 (13:34 +0000)]
Add some sanity check when creating 3-level 1:1 page table
in VMX domain builder.
- Add check for empty l2e page entry.
- Add check for failed vl1tab map.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:28:45 +0000 (13:28 +0000)]
Clear pending interrupt on shared page when pic initialized
and irq base changed.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:13:10 +0000 (13:13 +0000)]
Get rid of anonymous unions in public header files.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 12:49:13 +0000 (12:49 +0000)]
Call dominfo.device_delete instead of non-existant dominfo.device_destroy.
Signed-off-by: Sean Dague <sean@dague.net>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 10:58:00 +0000 (10:58 +0000)]
Remove unsued domain_controller.h file.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 09:20:21 +0000 (09:20 +0000)]
Fix 64-bit build problem. Not allowed to movl between a
segment register and a memory location.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 09:17:44 +0000 (09:17 +0000)]
Move hypervisor.h to asm-i386/asm-x86_64.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 09:14:32 +0000 (09:14 +0000)]
mem-map.sxp and vmxloader are unaffected by a 64-bit build,
and belong in /usr/lib always (never /usr/lib64). qemu-dm
continues to live under /usr/lib64 on 64-bit systems.
Modify the vmx config script to auto-detect correct path
to qemu-dm, rather than staically configuring at compile
time.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 08:41:49 +0000 (08:41 +0000)]
Fix xenstored watch crash.
When a connection blocked waiting on a transaction, don't queue watch events.
Sure, they'd be ignored and re-transmitted, but it hits an assert that we don't
send data out blocked connections, and it's wasteful.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:52:24 +0000 (21:52 +0000)]
Don't return failure when trying to delete a non-existent node.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:29:28 +0000 (21:29 +0000)]
Perform xenbus operations in shutdown_handler in a transaction.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:24:03 +0000 (21:24 +0000)]
Don't cause watch fire deadlock by unconditionally rewriting the sysrq node.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:00:13 +0000 (21:00 +0000)]
Don't fail readDB on empty dirs.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 20:54:41 +0000 (20:54 +0000)]
Switch shutdown and sysrq to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
djm@kirby.fc.hp.com [Tue, 13 Sep 2005 20:20:02 +0000 (14:20 -0600)]
Converge ia64 grant_table API
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 19:43:58 +0000 (19:43 +0000)]
Free blkif if vbd_create fails.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
djm@kirby.fc.hp.com [Tue, 13 Sep 2005 19:42:33 +0000 (13:42 -0600)]
Catchup with xen-unstable, add ia64 specifics to tools, and some VTI merge
Signed-off-by Kevin Tian <Kevin.tian@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 19:09:44 +0000 (19:09 +0000)]
Fix the logic in vcpu_sleep_sync(): we must wait until
the running flag is cleared *and* the scheduler lock is
released. Not just one or the other.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
djm@kirby.fc.hp.com [Tue, 13 Sep 2005 19:08:00 +0000 (13:08 -0600)]
Add ia64 header for synch_bitops.h
shand@ubuntu.eng.hq.xensource.com [Tue, 13 Sep 2005 18:03:04 +0000 (10:03 -0800)]
Some more resilience to errors in creating vbds etc; still needs more work
to tidy up things properly (e.g. the store state).
Signed-off-by: Steven Hand <steven@xensource.com>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 17:49:38 +0000 (17:49 +0000)]
Switch memory target handling to use xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 17:32:59 +0000 (17:32 +0000)]
g/c introduceDomain and releaseDomain bindings in xsnode and xsobj.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 17:31:13 +0000 (17:31 +0000)]
Switch vcpu hotplugging to use xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 16:57:45 +0000 (16:57 +0000)]
Fix domain list build/cleanup code with xend subdirectory.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 16:56:02 +0000 (16:56 +0000)]
IntroduceDomain of dom0 can fail when it's already connected.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 16:55:21 +0000 (16:55 +0000)]
Fix error handling code paths.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
djm@kirby.fc.hp.com [Tue, 13 Sep 2005 16:14:16 +0000 (10:14 -0600)]
Merge with latest xen-unstable
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:48:19 +0000 (15:48 +0000)]
merge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:46:49 +0000 (15:46 +0000)]
merge?
emellor@ewan [Tue, 13 Sep 2005 15:44:48 +0000 (16:44 +0100)]
Fix imports.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:33:37 +0000 (15:33 +0000)]
merge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:32:38 +0000 (15:32 +0000)]
Store dom0 store ring-ref in store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:21:53 +0000 (15:21 +0000)]
Switch to IntroduceDomain, move xend info into xend subdirectory in store.
Also switch store/console event channel and page reference store
entries over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:19:39 +0000 (15:19 +0000)]
Move xshandle to xsutil.py, add IntroduceDomain, fix list to handle empty/non-existant directories and fix Remove.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:05:49 +0000 (15:05 +0000)]
merge?
emellor@ewan [Tue, 13 Sep 2005 14:46:20 +0000 (15:46 +0100)]
Fix the check that the argument count is even, for xenstore_write.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 14:45:34 +0000 (14:45 +0000)]
Change read and list to return None if key/dir doesn't exist.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
emellor@ewan [Tue, 13 Sep 2005 14:42:34 +0000 (15:42 +0100)]
Added help line for dev-docs target.
ewan@linford.intra [Tue, 13 Sep 2005 13:49:37 +0000 (14:49 +0100)]
Added isDevControllerClass so that XendDomainInfo does not need to store the same information internally. This may soon go, depending on how useful controller.py turns out to be.
ewan@linford.intra [Tue, 13 Sep 2005 13:48:22 +0000 (14:48 +0100)]
Removed {add,get}_{config,device}_handler in favour of using a simple dictionary directly. Fix a misnamed variable blconfig that was supposed to refer to blcfg. This showed up under pylint as a undefined variable, but would have manifested itself in the bootloader configuration being ignored.
ewan@linford.intra [Tue, 13 Sep 2005 13:43:18 +0000 (14:43 +0100)]
Added .PHONY target so that make works from the tools/python directory (it was seeing the build directory and therefore doing nothing).
ewan@linford.intra [Tue, 13 Sep 2005 13:42:21 +0000 (14:42 +0100)]
Pass the root directory to Doxyfilter and thence pythfilter.py so that the latter can get the namespace/packages correct.
ewan@linford.intra [Tue, 13 Sep 2005 13:41:05 +0000 (14:41 +0100)]
Pass the root directory to Doxyfilter and thence pythfilter.py so that the latter can get the namespace/packages correct.
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:49:04 +0000 (10:49 +0000)]
This trivial patch makes sure that mem-map.sxp and the qemu bits
get installed in /usr/lib64 on distributions that want things
there.
Signed-off-by: Rik van Riel <riel@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:42:15 +0000 (10:42 +0000)]
Update ignores list for new xenstore binaries.
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:40:29 +0000 (10:40 +0000)]
synch_bitops.h is an arch-specific header file.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:21:22 +0000 (10:21 +0000)]
Newer binutils is a bit stricter and errors out when you try
to use movl on a 16 bit word on x86_64. Using just a "mov"
compiles fine and should result in the same code.
{standard input}: Assembler messages:
{standard input}:2138: Error: suffix or operands invalid for `mov'
{standard input}:2140: Error: suffix or operands invalid for `mov'
{standard input}:2142: Error: suffix or operands invalid for `mov'
{standard input}:2144: Error: suffix or operands invalid for `mov'
Signed-off-by: Rik van Riel <riel@redhat.com>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:14:20 +0000 (10:14 +0000)]
merge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:13:52 +0000 (10:13 +0000)]
Fixed consoled race condition.
Signed-off by: Andy Peace <andrew.peace@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:12:40 +0000 (10:12 +0000)]
domain_crash_synchronous() on x86_64 causes Xen to crash because
it tries to dereference an invalid stack address. The patch below
fixes this. The patch also updates show_registers() to print the
same information as its x86_32 equivalent.
Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:05:49 +0000 (10:05 +0000)]
Prevent opening the xenbus device if the store isn't connected yet.
Running xenstore clients using the xenbus device before the store
connection has been set up causes a crash because the store page
won't have been allocated yet. This is only a problem in dom0 where
we setup the store page from the PRIVCMD_INITDOMAIN_STORE ioctl.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 09:11:58 +0000 (09:11 +0000)]
merge?
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 09:09:59 +0000 (09:09 +0000)]
Fix a bug in shadow_remove_all_access_in_page.
Fixes a fairly obvious bug, in which an if statement was reversed. The
bug has been present for a while, so apparently this code isn't well
tested.
Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 09:09:13 +0000 (09:09 +0000)]
Fix up testsuite from recent changes.
(1) Make TESTDIR relative (my directory exceeded 108 chars, breaking sockets)
(2) Make TESTDIR if it doesn't exist
(3) Add dummy xc_domain_getinfo and xc_evtchn_bind_virq for fake libxc
(4) Fix tests broken by
b594bb976a743d509f1ffabb5bc698874ab90d8f
(5) domain_cleanup() can be static, as it's not used elsewhere.
(6) With -Werror, "use" unused variable in domain_init() if TESTING
(7) Remove debugging printf on watch without perms.
(8) Loosen timeout in xs_test (valgrind + slow machine == bogus timeouts)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 08:35:41 +0000 (08:35 +0000)]
Put xenstored.h in linux-public include dir.
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 21:42:26 +0000 (21:42 +0000)]
Always allow overriding where clients connect through XENSTORED_PATH.
Detect if we're connecting to a socket or to the domain device and
open accordingly.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 21:12:16 +0000 (21:12 +0000)]
Change xenbus_dev interface from ioctl to read/write.
Check boundaries so we can recover if userspace dies.
Also simplifies libxenstore.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 20:46:37 +0000 (20:46 +0000)]
Add xenstore-list and xenstore-exists clients
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 20:24:58 +0000 (20:24 +0000)]
Check the return value of chdir(2) and write(2).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 20:00:41 +0000 (20:00 +0000)]
merge?
cl349@firebug.cl.cam.ac.uk [Mon, 12 Sep 2005 19:59:40 +0000 (19:59 +0000)]
Switch vtpm device setup/teardown over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>